def listToStr(param):
	result = ''
	for i in range(len(param) -1):
		result += param[i] + ', '
	result += 'and ' + param[-1]
	return result

print(listToStr(['a', 'b', 'c']))
	